/*
 * @Author: Mcfly
 * @Date: 2021-11-04 14:35:35
 * @LastEditTime: 2021-11-04 14:50:19
 * @LastEditors: Mcfly
 * @Description: 机载激光器控制
 * @FilePath: \FTTfly\BSPdriver\Laser.h
 * 本人github:https://github.com/McflyWZX
 */
#ifndef __LASER_H__
#define __LASER_H__

#include "WP_DataType.h"


#include "stdbool.h"
#include "stdint.h"

//单位秒
typedef struct
{
    uint32_t port;
    uint8_t pin;
    uint8_t enable;
    float flashTime;
    float cycleTime;
    float deltaTime;
    float workTime;
} Laser;


Laser *Laser_Init(uint32_t portPerip, uint32_t port, uint8_t pin, float deltaTime, float cycleTime, float flashTime);
void Laser_Process(Laser *laser);

#endif
